<? if ($c = stack('name')) {

	?><div id="cpn-<?=$c?>" class="registerblock"><?

		if(logged_in()) {
			
			?><h2 class="reg"><?=tc('Registration')?></h2>
			<div class="caption" style="padding:15px 0px 5px 0px; text-align:center; color:#000;"><span><?=tc('Welcome')?></span></div>
			
			<p style="padding:2px 0px; text-align:center; color:#000;"><span><?=tc('<strong>!name</strong>', array('!name' => user_info('name')))?></span></p>
			<form action="" method="post" style="padding:2px 0px; text-align:center;">
				<input type="submit" name="log_out" class="logout" value="<?=tc('Sign out')?>" onclick="return confirm('<?=htc('Are you sure you wish to sign out and login using another credentials?')?>')" />
			</form><?
			
		
		} else {
		
				?>
				<div class="register">
					<form action="" method="post">
						<label><?=tc('Login')?></label>
						<input name="login" type="text" value="">						
						<label><?=tc('Password')?></label>
						<input name="pass" type="password" value=""><div class="clearer"></div>
					   <input class="remember" type="checkbox"  /> <label class="remember"><?=tc('Remember me')?></label> 
						<input name="log_in" type="submit" value="<?=tc('Enter')?>">
						<div class="clearer"></div>
						<p class="register_links">
							<a class="regist" href="#">Реєстрація</a>
							<a class="forgot" href="#">Забули пароль?</a>							
					   </p> 
					</form>
				</div>
				<?
		}

		?><div class="clearer"></div><?
	?></div><?

	unstack();
}
